package com.pzh.xzh.uaa.result;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
@AllArgsConstructor
public enum  ResultCodeEnum {
    SUCCESS(true,20000,"成功"),
    UNKNOWN_REASON(false,20001,"未知原因错误"),
    SQL_BAD(false,21001,"sql语句错误"),
    PARAM_ERROR(false,20002,"参数不正确"),
    USER_NAME_EXIST(false,20003,"用户名已存在"),
    TEL_CODE_CHECKOUT(false,20004,"手机验证码输入错误"),
    USER_IS_NOT_EXIST(false,20005,"用户不存在，请更换手机号"),
    PASSWORD_ERROR(false,20007,"密码错误，请重试"),
    USER_IS_DISABLE(false,20008,"用户被禁用，请联系管理员解禁"),
    USER_NOT_LOGIN(false,20009,"用户未登录");
    private Boolean success;
    private Integer code;
    private String message;

    // todo @AllArgsConstructor
//    ResultCodeEnum(Boolean success,Integer code,String message){
//        this.success=success;
//        this.code=code;
//        this.message=message;
//    }
}
